package com.ruizhong.centercontroll.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_button")
@XmlRootElement
public class TButton {
    @XmlTransient
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @XmlTransient
    private Integer pageId;
    private String textChinese;
    private String textTraditional;
    private String textEnglish;
    private String background;
    private Double w;
    private Double h;
    private Double x;
    private Double y;
    private Integer z;
    @XmlTransient
    private Double rotate;
    private String fontColor;
    private String displayVariableName;
    private String displayVariableValue;
    private Integer conditionShowData;
    @XmlTransient
    @TableField(exist = false)
    private Boolean conditionShow;

    private Integer fontSize;

    @XmlTransient
    @TableField(exist = false)
    private List<TCommand> clickCommandList;

    @XmlTransient
    @TableField(exist = false)
    private String type = "BUTTON";

    private String addedButtonGroupArrData;

    @XmlTransient
    @TableField(exist = false)
    private List<String> addedButtonGroupArr;

    private String backgroundColor;

    private Integer borderCorner;

    private String logicGraphData;

    private String name;


    @TableField(exist = false)
    private Set<String> returnVariableSet;

    @TableField(exist = false)
    private String beChangedVariableName;


    @XmlTransient
    @TableField(exist = false)
    private Map logicGraph;

    @XmlTransient
    public String getLogicGraphData() {
        return logicGraphData;
    }

    @XmlTransient
    public List<String> getAddedButtonGroupArr() {
        return addedButtonGroupArr;
    }

    @XmlTransient
    public String getType() {
        return type;
    }

    @XmlTransient
    public List<TCommand> getClickCommandList() {
        return clickCommandList;
    }

    @XmlTransient
    public Boolean getConditionShow() {
        return conditionShow;
    }



}
